package com.zbec.mdrs.entity.discount;

import com.zbec.mdrs.entity.RecordEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by fxl on 2015/10/17.
 */
@Entity
@Table(name = "tb_discount")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Discount extends RecordEntity implements Serializable {
    private String zzjgdm;//组织机构代码
    private String sjsj;//数据年月
    private String jrjgbm;//金融机构编码
    private String jrjgwdmc;//金融机构网点名称
    private String wdssqu;//网点所属地区
    private String txsqrmc;//贴现申请人名称
    private String pjzl;//票据种类
    private String cdhmc;//承兑人/行名称
    private String bz;//币种
    private BigDecimal txje;//贴现金额
    private BigDecimal zsrmb;//折算成人民币的金额
    private BigDecimal zsmy;//折算成美元的金额
    private Date txrq;//贴现日
    private Date cdrq;//承兑到期日
    private BigDecimal txll;//贴现利率
    private BigDecimal pmje;//票面金额
    private String wjfl;//五级分类
    private String cdhdq;//承兑行（人）所在地区（字典:承兑行（人）所在地区）

    private String detail;
    private String dkkbm;//贷款卡编号e
    private String pjnbbh;//票据内部编号
    public String getDkkbm() {
        return dkkbm;
    }

    public void setDkkbm(String dkkbm) {
        this.dkkbm = dkkbm;
    }

    public String getZzjgdm() {
        return zzjgdm;
    }

    public void setZzjgdm(String zzjgdm) {
        this.zzjgdm = zzjgdm;
    }

    public String getSjsj() {
        return sjsj;
    }

    public void setSjsj(String sjsj) {
        this.sjsj = sjsj;
    }

    public String getJrjgbm() {
        return jrjgbm;
    }

    public void setJrjgbm(String jrjgbm) {
        this.jrjgbm = jrjgbm;
    }

    public String getJrjgwdmc() {
        return jrjgwdmc;
    }

    public void setJrjgwdmc(String jrjgwdmc) {
        this.jrjgwdmc = jrjgwdmc;
    }

    public String getWdssqu() {
        return wdssqu;
    }

    public void setWdssqu(String wdssqu) {
        this.wdssqu = wdssqu;
    }

    public String getTxsqrmc() {
        return txsqrmc;
    }

    public void setTxsqrmc(String txsqrmc) {
        this.txsqrmc = txsqrmc;
    }

    public String getPjzl() {
        return pjzl;
    }

    public void setPjzl(String pjzl) {
        this.pjzl = pjzl;
    }

    public String getCdhmc() {
        return cdhmc;
    }

    public void setCdhmc(String cdhmc) {
        this.cdhmc = cdhmc;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public BigDecimal getTxje() {
        return txje;
    }

    public void setTxje(BigDecimal txje) {
        this.txje = txje;
    }

    public BigDecimal getZsrmb() {
        return zsrmb;
    }

    public void setZsrmb(BigDecimal zsrmb) {
        this.zsrmb = zsrmb;
    }

    public BigDecimal getZsmy() {
        return zsmy;
    }

    public void setZsmy(BigDecimal zsmy) {
        this.zsmy = zsmy;
    }

    public Date getTxrq() {
        return txrq;
    }

    public void setTxrq(Date txrq) {
        this.txrq = txrq;
    }

    public Date getCdrq() {
        return cdrq;
    }

    public void setCdrq(Date cdrq) {
        this.cdrq = cdrq;
    }

    public BigDecimal getTxll() {
        return txll;
    }

    public void setTxll(BigDecimal txll) {
        this.txll = txll;
    }

    public BigDecimal getPmje() {
        return pmje;
    }

    public void setPmje(BigDecimal pmje) {
        this.pmje = pmje;
    }

    public String getWjfl() {
        return wjfl;
    }

    public void setWjfl(String wjfl) {
        this.wjfl = wjfl;
    }

    public String getCdhdq() {
        return cdhdq;
    }

    public void setCdhdq(String cdhdq) {
        this.cdhdq = cdhdq;
    }

    @Transient
    public String getDetail() {
        this.detail=" tb_discount RecordId : "+this.recordId+" 组织机构代码 : "+this.zzjgdm
                +" 贴现申请人名称 : "+this.txsqrmc;
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getPjnbbh() {
        return pjnbbh;
    }

    public void setPjnbbh(String pjnbbh) {
        this.pjnbbh = pjnbbh;
    }
}
